export class MyItemType {
  id: number;
  title: string;
  checked: boolean;
  constructor(id: number, title: string, checked: boolean) {
    this.id = id;
    this.title = title;
    this.checked = checked;
  }
}

export class CardItemType {
  avatar: string;
  name: string;
  desc: string;

  constructor(avatar: string, name: string, desc: string) {
    this.avatar = avatar;
    this.name = name;
    this.desc = desc;
  }
}

export interface AuthorType {
  name: string;
}

export interface ScriptType {
  title: string;
  stars: number;
  auth: AuthorType;
}

export interface MemberType {
  avatar: string;
  name: string;
  desc: string;
  userNo: string;
}

export interface PermissionType {
  id: number;
  appId: number;
  parentId: number;
  name: string;
  desc: string;
  subject: string;
  action: string;
  isDeleted: boolean;
  createdAt?: number;
}

export interface RoleType {
  id: number;
  name: string;
}

export interface AdminUserType {
  id: number;
  name: string;
  avatar: string;
  phone: string;
  userNo: string;
  createdAt: number;
}
